package com.example.springboot;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author yuwl
 * @description
 * @since 2023-08-18 14:57
 */
@Data
@ToString
@Document(value = "user")
public class User {

    @Id
    private String id;

    private String name;
    private Integer age;
}
